<?php
return [
    'components' => [
        'db' => [
//            'class' => 'yii\db\Connection',
//            'dsn' => 'mysql:host=107.167.123.182;dbname=infra_inner_tools',
//            'username' => 'infra',
//            'password' => 'infra4opera',
//            'charset' => 'utf8',
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=127.0.0.1;dbname=yanbing',
            'username' => 'root',
            'password' => '123456',
            'charset' => 'utf8mb4',
        ],
        'remotedb' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=107.167.123.182;dbname=infra_inner_tools',
            'username' => 'infra',
            'password' => 'infra4opera',
            'charset' => 'utf8',
        ],
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => 'localhost',
            'port' => 6379,
            'database' => 0,
        ],
        'mutex' => [
            'class' => 'yii\mutex\MysqlMutex',
        ],
    ],
];
